<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<jsp:directive.page import="com.lg.system.CTurnPage" />
<%@ include file="/jsp/jscommom.jsp"%>
<%@ include file="/jsp/admintop.jsp"%>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<title>工作岗位管理</title>
		<link href="/css/login.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript">
function domethod(){
document.forms[0].submit();
}

function goto(url){
window.open(url,"_blank");
}
</script>
	<%
		CTurnPage mPage = new CTurnPage();
		mPage = (CTurnPage) request.getAttribute("page");
	%>
	<body>
		<html:form action="/system/admin/stationmanage/viewkindofsta" method="post">
			<div align="center">
				<table width="97%" border="0" align="center" cellpadding="0"
					cellspacing="1" class="line1">
					<tr>
						<td class="titlebg">
							岗位类别配置
						</td>
					</tr>

					<tr>
						<td class="mtdtitle1">
							<table width="100%" align="center" cellpadding="0"
				cellspacing="1" class="line1">
								<tr>
									<td class="mtdtextleft" colspan="4">
										<input value="增加" type="button" class="tbutton"
											onclick="goto('/system/admin/stationmanage/addkindofsta.do')" />
									</td>
								</tr>

								<tr>
									<td class="titlebg" colspan="4">
										岗位类别列表
									</td>
								</tr>

								<tr>
									<td class="mtdtitle1">
										编号
									</td>
									<td class="mtdtitle1">
										岗位类别名称
									</td>
									<td class="mtdtitle1">
										状态
									</td>
								</tr>

								<logic:empty name="page" property="sqlList">
									<tr>
										<td class="mtdtextcenterwrite" colspan="4">
											没有可显示的内容!

										</td>
									</tr>
								</logic:empty>
								<logic:notEmpty name="page" property="sqlList">
									<logic:iterate type="com.ibatis.po.user.TStation"
										id="staList" name="page" property="sqlList" indexId="index">
										<%
								if((index.intValue() + 1)%2==0){
								 %>
										<tr style="cursor:hand"
											onclick="goto('/system/admin/stationmanage/editkindofsta.do?staId=${staList.id }')">
											<td class="mtdtextcenterblue">
												${staList.id }
											</td>
											<td class="mtdtextcenterblue">
												${staList.sortName }
											</td>
											<td class="mtdtextcenterblue">
												<logic:equal value="0" name="staList" property="status">无效</logic:equal>
												<logic:equal value="1" name="staList" property="status">有效</logic:equal>

											</td>
										</tr>
										<%
								}else{
								 %>
										
										<tr style="cursor:hand"
											onclick="goto('/system/admin/stationmanage/editkindofsta.do?staId=${staList.id }')">
											<td class="mtdtextcenterwrite">
												${staList.id }
											</td>
											<td class="mtdtextcenterwrite">
												${staList.sortName }
											</td>
											<td class="mtdtextcenterwrite">
												<logic:equal value="0" name="staList" property="status">无效</logic:equal>
												<logic:equal value="1" name="staList" property="status">有效</logic:equal>

											</td>
										</tr>
										<%
								 }
								  %>
									</logic:iterate>
								</logic:notEmpty>
								<tr>
									<td colspan="3" class="mtdtitle1">
										<table width='100%'>
											<tr>
												<td class="left">
													<%=mPage.getPageInfo()%>
												</td>
												<td class="right">
													<%=mPage.getTurnPageLink()%>
												</td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</div>
		</html:form>
	</body>
</html>
